import { postRequest } from '../utils/axios';

/**
 * 远程会诊-专家
 */
// 我的会诊记录
export const getMyConsultationList = params => postRequest('/web/rcs/list-doctor', params);
// 新增远程会诊
export const addConsultation = params => postRequest('/web/rcs/addRcsApply', params);
// 审核远程会诊
export const auditConsultation = params => postRequest('/web/rcs/auditRcsApply', params);

// TODO 获取科室列表
export const getDepartmentList = params => postRequest('/web/index/utilDepartment/getDepartmentListPc');
// TODO 根据科室获取医生列表
export const getDoctorListByDepartment = params => postRequest('/web/rcs/getExpertDoctorList', params);

// 根据患者身份证查询患者信息
export const getPatientInfoByIdCard = params => postRequest(`/web/rcs/getPatientInfoByIdcard?idCard=${params.idCard}`);

// 会诊聊天记录
export const getConsultationChatRecord = params => postRequest('/web/rcs/chat-history', params);
export const endConsultation = params => postRequest('/web/rcs/endRcsApply', params);
// 更新患者信息 /web/rcs/updatePatientDiseaseInfo
export const updatePatientDiseaseInfo = params => postRequest('/web/rcs/updatePatientDiseaseInfo', params);

